/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author William
 */
@Entity
public class Location implements Serializable {

    private static final Serializable serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long Id;
    private String room;
    private String bookcase;
    private String locationLevel;
    private String container;
    private String temperature;
    private int amount;
    private String units;
    @ManyToOne
    private Reagent reagent;

    public Location() {
    }

    public Location(Long Id, String room, String bookcase, String locationLevel, String container, String temperature, int amount, String units, Reagent reagent) {
        this.Id = Id;
        this.room = room;
        this.bookcase = bookcase;
        this.locationLevel = locationLevel;
        this.container = container;
        this.temperature = temperature;
        this.amount = amount;
        this.units = units;
        this.reagent = reagent;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public String getBookcase() {
        return bookcase;
    }

    public void setBookcase(String bookcase) {
        this.bookcase = bookcase;
    }

    public String getLocationLevel() {
        return locationLevel;
    }

    public void setLocationLevel(String locationLevel) {
        this.locationLevel = locationLevel;
    }

    public String getContainer() {
        return container;
    }

    public void setContainer(String container) {
        this.container = container;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public Reagent getReagent() {
        return reagent;
    }

    public void setReagent(Reagent reagent) {
        this.reagent = reagent;
    }
    @Override
    public String toString(){
        String s= Id+" "+amount+" "+bookcase+" "+container+" "+locationLevel+" "+reagent+" "+room+" "+temperature+" "+units;
        
        return s;
    }
}
